/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.unicode.unihan.parser.field;

import org.unicode.unihan.domain.AccountingNumeric;
import org.unicode.unihan.domain.Unihan;

/**
 *
 * @author Andrew
 */
public class AccountingNumericFactory
        implements UnihanFactory<AccountingNumeric>
{

    private IntegerParser parser = new IntegerParser();

    // do we want an isValid() method?
    public AccountingNumeric create(Unihan unihan, String s) {
        return new AccountingNumeric(unihan, parser.parse(s));
    }

}
